import request from '@/utils/request'

// 查询约印医疗-项目管理-项目初步评估主列表
export function listSysYueyinPreliminaryProjectEvaluationInfo(query) {
  return request({
    url: '/preliminaryAssessment/sysYueyinPreliminaryProjectEvaluationInfo/list',
    method: 'get',
    params: query
  })
}

// 查询约印医疗-项目管理-项目初步评估主详细
export function getSysYueyinPreliminaryProjectEvaluationInfo(id) {
  return request({
    url: '/preliminaryAssessment/sysYueyinPreliminaryProjectEvaluationInfo/' + id,
    method: 'get'
  })
}

// 保存约印医疗-项目管理-项目初步评估主
export function saveSysYueyinPreliminaryProjectEvaluationInfo(data) {
  return request({
    url: '/preliminaryAssessment/sysYueyinPreliminaryProjectEvaluationInfo/save',
    method: 'post',
    data: data
  })
}

// 删除约印医疗-项目管理-项目初步评估主
export function delSysYueyinPreliminaryProjectEvaluationInfo(id) {
  return request({
    url: '/preliminaryAssessment/sysYueyinPreliminaryProjectEvaluationInfo/' + id,
    method: 'delete'
  })
}

// 导出约印医疗-项目管理-项目初步评估主
export function exportSysYueyinPreliminaryProjectEvaluationInfo(query) {
  return request({
    url: '/preliminaryAssessment/sysYueyinPreliminaryProjectEvaluationInfo/export',
    method: 'get',
    params: query
  })
}

// 查询天眼查id和公司名称
export function queryCompanyDataByDealId(dealId) {
  return request({
    url: '/preliminaryAssessment/sysYueyinPreliminaryProjectEvaluationInfo/queryCompanyDataByDealId/' + dealId,
    method: 'get'
  })
}

export function getCompanyBaseInfo(query) {
  return request({
    url: '/voteInfo/sysYueyinProjectVoteInfo/getCompanyBaseInfo',
    method: 'get',
    params: query
  })
}
